package com.itheima.pattern.singleton.demo1;

/**
 * 饿汉式(静态式）
 */
public class Singleton {
    //私有构造方法
    private Singleton(){}

    private static Singleton instanc=new Singleton();

    public static Singleton getInstanc(){
        return instanc;
    }


}
